<?php echo $this->render('resource/friendsite/_tab.phtml');?>
<form action="" method="post" enctype="multipart/form-data">
<?php echo $this->form()->hidden('referer', $this->referer) . "\n";?>
<div class="body">
	<table class="form">
		<tr>
			<th colspan="2"><?php echo $this->language('SITE INFORMATION');?>:</th>
			<th><?php echo $this->language('SITE LOGO');?>:</th>
		</tr>
		<tr>
			<td width="180"><label><span class="red">*</span> <?php echo $this->language('Site Name');?></label></td>
			<td>
				<?php echo $this->form()->text('name', $this->row->getName(), array('size' => '50', 'maxlength' => '50'));?>
				<code><?php echo $this->language('Between 2~50 characters');?>.</code>
			</td>
			<td width="220" rowspan="5"><?php echo $this->partial('picture/_inc/uploadInput.phtml', array('image' => $this->row->getLogo(), 'name' => 'logo', 'edit' => $this->row->getId(), 'watermarkOptions' => false));?></td>
		</tr>
		<tr>
			<td><label><?php echo $this->language('Display Order');?></label></td>
			<td>
				<?php echo $this->form()->text('display_order', $this->row->getDisplayOrder(),array('size'=>'10', 'maxlength'=>'10'));?>
				<code><?php echo $this->language('Numeric Only');?>.</code>
			</td>
		</tr>
		<tr>
			<td><label><span class="red">*</span> <?php echo $this->language('URL');?></label></td>
			<td><?php echo $this->form()->text('url', $this->row->getUrl(), array('size' => '50', 'maxlength' => '250'));?></td>
		</tr>
		<tr>
			<td><label><?php echo $this->language('Actived');?></label></td>
			<td><?php echo $this->form()->select('is_active', $this->row->getIsActive(), array(), array('0' => 'No', '1' => 'Yes'));?></td>
		</tr>
		<tr>
			<td><label><?php echo $this->language('Description');?></label></td>
			<td><?php echo $this->form()->textarea('description', $this->row->getDescription(), array('style' => 'width:80%', 'rows' => '6'));?></td>
		</tr>
		<tr>
			<td></td>
			<td colspan="2">
				<button type="submit" name="submit" value="submit"><?php echo $this->language('Submit');?></button>
				<?php
				if($this->row->getId()) {
					echo $this->render('include/deleteButton.phtml');
				}
				?>
			</td>
		</tr>
	</table>
</div>
</form>
